package net.csdn.business.common.domain.request.webhook;


import com.alibaba.fastjson2.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName WebhookNotifyMessage
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/5/5 10:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebhookNotifyMessage implements Serializable {

    /**
     * 被触发事件的webhook的id
     */
    private String webhookId;

    /**
     * 触发事件的主体id
     */
    private String targetId;

    /**
     * 触发事件的主体类型：仓库：repository; 组织：org; issue: issue
     */
    private String targetType;
    /**
     * 触发事件的事件类型
     */
    private String eventType;
    /**
     * 请求的Payload：
     */
    private String payload;
}
